import 'package:json_annotation/json_annotation.dart';
import 'package:short_drama/models/message_model.dart';

part 'message_list_model.g.dart';

@JsonSerializable()
class MessageListModel {
  final num? total;
  final num? per_page;
  final num? current_page;
  final num? last_page;
  final List<MessageModel>? data;

  const MessageListModel(
      this.total,
      this.per_page,
      this.current_page,
      this.last_page,
      this.data,
      );

  factory MessageListModel.fromJson(Map<String, dynamic> json) =>
      _$MessageListModelFromJson(json);

  Map<String, dynamic> toJson() => _$MessageListModelToJson(this);
}